import request from '@/utils/request'

// 查询盘点任务列表
export function listMyStock(query) {
  return request({
    url: '/asset/stock/my',
    method: 'get',
    params: query
  })
}
// 查询盘点任务
export function getStock(id) {
  return request({
    url: '/asset/stock/'+id,
    method: 'get'
  })
}


// 修改盘点任务
export function updateStock(data) {
  return request({
    url: '/asset/stock',
    method: 'put',
    data: data
  })
}

// 查询盘点记录列表
export function listStockDetail(query) {
  return request({
    url: '/asset/stockDetail/list',
    method: 'get',
    params: query
  })
}

// 查询盘点记录详细
export function getStockDetail(id) {
  return request({
    url: '/asset/stockDetail/' + id,
    method: 'get'
  })
}


// 修改盘点记录
export function updateStockDetail(data) {
  return request({
    url: '/asset/stockDetail',
    method: 'put',
    data: data
  })
}